{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<script type="application/javascript"  src="{$siteroot}/includes/js/add_testimonial.js" ></script>
<script type="text/javascript" src="{$siteroot}/greybox/greybox.js"></script>
<link href="{$siteroot}/greybox/greybox.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/find_job_list.css">
{/strip}

<!--Gray box-->
{literal}
<script type="text/javascript">
	var GB_ANIMATION = true;
    jQuery(document).ready(function(){
    	jQuery("a.greybox").click(function(){
        var t = this.title || jQuery(this).text() || this.href;
        GB_show("",this.href,425,500);
         return false;
       });
     });
</script>
{/literal}

{include file=$header_end}


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4>My Testimonials                  <a  href="{$siteroot}/testimonials/add_testimonial/" class="btn rF greybox" >POST TESTIMONIAL</a> </h4>
            	 <section class="clear"></section>
                 
                </section>                             
				{if $msg} {$msg} {/if}
                <section class="mainbox_findjobs">
				<section class="tem_manag_box">
                	<dl>
                    	<dt class="col1">Testimonials</dt>
                        <dt class="col2">Posted Date</dt>
                        <dt class="col3">Action</dt>
                        <section class="clear"></section>
                    </dl>
                    {section name=i loop=$testimonialArray}
                    <dl>
                    	<dd class="col1">
                        	<article>{$testimonialArray[i].description} </article>
                        </dd>
                        <dd class="col2">{$testimonialArray[i].added_date|date_format:"%d"}<sup></sup> {$testimonialArray[i].added_date|date_format:"%B"} {$testimonialArray[i].added_date|date_format:"%Y"}</dd>
                        <dd class="col3" style="text-align:center;"><a href="{$siteroot}/testimonials/delete/{$testimonialArray[i].id|base64_encode}/mytestimonials/" onclick="javascript:return confirm('Are you sure do you want to delete this record?');"><img src="{$siteroot}/templates/default/images/delete_icon.png" width="20" height="22" alt="Delete Icon" title="Delete Icon"/></a></dd>
                        <section class="clear"></section>
                    </dl>
                    {sectionelse}
                    	<div class="error" style="padding:10px;text-align:center;">There are no new testimonial.Write your first testimonial. Please Click on <a  href="{$siteroot}/testimonials/add_testimonial/" class="greybox" >post your testimonial</a>.</div>
                    {/section}
                  		{if $pagenation}
                            <section class="pagna">
                            {$pagenation}
                            </section>
                        {/if}
                             

                        
                        <section class="clear"></section>
                </section>   
                
                <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}